package cn.zjj.point;

import cn.zjj.TestUtils;
import cn.zjj.basic.util.DistanceUtils;
import cn.zjj.basic.util.Point;
import org.junit.Test;

public class PointMath extends TestUtils {

    @Test
    public void test(){
        Point beijing = DistanceUtils.getPoint("南充市南部县南充市民健医院");

        Point chengdu = DistanceUtils.getPoint("成都市武侯区天府新谷-5号楼");

        double distance = DistanceUtils.getDistance(beijing, chengdu);
        System.out.println(distance/1000);
    }
}
